﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextEditor4
{
    class ParseException:Exception
    {
        private string description;
        private int exceptionPositionBeg;
        private int exceptionPositionEnd;

        public int ExceptionPositionEnd
        {
            get { return exceptionPositionEnd; }
            set { exceptionPositionEnd = value; }
        }
        public int ExceptionPosition
        {
            get { return exceptionPositionBeg; }
            set { exceptionPositionBeg = value; }
        }
        public string Description
        {
            get { return description; }
            set { description = value; }
        }
        
        public ParseException(string str)
        {
            this.description = str;
        }
        
        public ParseException()
        {
            this.description = "Проблема в момент парсинья";
        }
        
        public ParseException(int posB,int posE,string des)
        {
            this.exceptionPositionBeg = posB;
            this.exceptionPositionEnd = posE;
            this.description = des;
        }
    }
}
